package br.com.sigad.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {
	
	public static Connection getConnection() throws ClassNotFoundException, SQLException{
		Class.forName("org.postgresql.Driver");
		String urlConexao = "jdbc:postgresql://localhost:5432/postgres";
		String usuario = "gad";
		String senha = "gad";
		Connection conn = DriverManager.getConnection(urlConexao,usuario,senha);
		return conn;
	}
}